﻿@model Citi.Scheduler.Domain.RoutineExecution
@section Menu
{
    @Html.Partial("~/Views/Menu/Execution.cshtml", new ViewDataDictionary())
}
<script type="text/javascript">
    var intervalId;

    $(function () { 
        fillExecutionDataInterval();

        intervalId = window.setInterval(fillExecutionDataInterval, 4000);
    });

    function fillExecutionDataInterval(){
        
        fillExecutionData(@Model.Id);
        
        if ($('#hiddenFinished').length > 0)
            clearInterval(intervalId);
    }
</script>
<table>
    <tr id="currentStatus">
        
    </tr>
</table>

@Html.Partial("~/Views/RoutineExecution/ExecutionResult.cshtml")

